package com.lipaluma.examples.annotation.client;

import java.util.Date;

import com.lipaluma.annotations.mapping.MapColumn;
import com.lipaluma.annotations.validations.ValidateInteger;
import com.lipaluma.excel.annotations.config.Excel;
import com.lipaluma.excel.config.ExcelExtension;

@Excel(extension=ExcelExtension.XLS, hasHeader=true, mapColumnsByHeaders=true)
public class Client1 {
	
	@MapColumn(columnName="ID")
	@ValidateInteger(unique=true)
	private int id;
	
	@MapColumn(columnName="NAME")
	private String name;
	
	@MapColumn(columnName="CREATION")
	private Date creationDate;
	
	@MapColumn(columnName="STATUS")
	private Status status;
	
	@MapColumn(columnName="ACTIVE")
	private boolean active;
	
	public enum Status {
		CREATED, INVOICED, DELIVERED
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public Status getStatus() {
		return status;
	}

	public boolean isActive() {
		return active;
	}
	
	
}
